<?php
class Table
{
    public $name = '';
    public $fields = array();
    public $count = 0;
    public $pagesize = 100;
    public $page = 1;
    public $recordset = array();

	public function __construct($args = array())
    {
        if ( ! isset($args['name'])) die('missing table name.');
        $this->init();
    }

    public function init()
    {

    }

    public function getFields()
    {

    }
}